package com.smartplatform.mapper;

import com.smartplatform.pojo.SysScene;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author 咕唧
 * @Date 2022/5/31 12:20
 * @Version 1.0
 */
public interface SysSceneMapper {
    @Select("select * from sys_scene where create_by=#{userId}")
    List<SysScene> findAllByUserId(Long userId);

    @Insert("insert into sys_scene(scene_name,create_by) " +
            "values (#{sceneName},#{createBy})")
    void addSysScene(SysScene sysScene);
}
